package com.huawei.codearts.tools.validated;

public enum StatusEnum {
    SUCCESS(1000, "success"),
    ERROR(1001, "error"),
    UNAUTHORIZED(401, "用户认证失败"),
    FORBIDDEN(403, "权限不足"),
    NOT_FOUND(404, "Resource Not Found"),
    SERVICE_ERROR(500, "服务器去旅行了，请稍后重试"),
    PARAM_INVALID(1100, "无效的参数"),
    ;

    public final Integer code;

    public final String message;

    StatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
